import proxy from 'http-proxy-middleware'

export default function (app) {
  app.use(
    proxy('/api', { 
      target: 'http://127.0.0.1:8080',
      changeOrigin: true,
      pathRewrite: { '^/api': '' }
    })
  )
}